import request from '@/utils/request'

/**
 * 获取职位列表
 * @param params 
 * @returns 
 */
export const getPositionList = (params?: any) => request.get({ url: '/adminapi/system.organize.position/lists', params })


/**
 * 添加职位
 * @param data 
 * @returns 
 */
export const addPosition = (data: any) => request.post({ url: '/adminapi/system.organize.position/save', data })


/**
 * 更新职位
 * @param data 
 * @returns 
 */ 
export const updatePosition = (data: any) => request.put({ url: '/adminapi/system.organize.position/update', data })

/**
 * 删除职位
 * @param data 
 * @returns 
 */
export const deletePosition = (data: any) => request.delete({ url: '/adminapi/system.organize.position/delete', data })


/**
 * 获取职位列表
 * @param params 
 * @returns 
 */
export const getPositionLists = (params?: any) => request.get({ url: '/adminapi/system.organize.position/getPositionList', params })
